Quaqua 4.4.7 2008-07-16

ch.randelshofer.quaqua.osx
Class Application

java.lang.Object
  extended by ch.randelshofer.quaqua.osx.Application

public class Application
extends java.lang.Object

Application.

Version:
2.1.1 2008-03-16 Improved scaling quality of application icon.
2.1 2007-11-24 Only use Java to Cocoa Bridge when running on Mac OS X. On UnsatisfiedLinkError retry with absolute path to load libquaqua.jnilib.
2.0.8 2007-09-08 Security exception in static initalizer of this class caused that option pane icons were not displayed.
2.0.1 2007-07-25 Method getIconImage returned icon with wrong size, when no native code was available.
2.0 2007-04-28 Added methods getIconImage, jniGetIconImage.
1.0 January 15, 2007 Created.
Author:
Werner Randelshofer

Method Summary
static java.awt.image.BufferedImage getIconImage(int size)
          Returns the icon image of the application.
static void requestUserAttention(boolean requestCritical)
          Requests user attention through JNI or through Cocoa Java.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

requestUserAttention

public static void requestUserAttention(boolean requestCritical)
Requests user attention through JNI or through Cocoa Java. This method will fail silently if neither JNI nor Cocoa Java is available.

Parameters:
requestCritical - Set this to true, if your application invokes a modal dialog. Set this to false, in all other cases.

getIconImage

public static java.awt.image.BufferedImage getIconImage(int size)
Returns the icon image of the application.

Parameters:
size - the desired size of the icon in pixels (width and height)
Returns:
The application image. Returns a generic application image if JNI is not available.

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.